<script lang="ts" setup>
const emits = defineEmits(['ok'])

const visible = ref<boolean>(false)

const modal = ref<string | number>()

const open = () => {
  visible.value = true
}

const beforeOk = () => {
  if (!modal.value) {
    return false
  }
  return true
}

const onOk = () => {
  emits('ok', modal.value)
}

defineExpose({
  open,
})
</script>

<template>
  <a-modal v-model:visible="visible" title="设置课程顾问" @ok="onOk" @before-ok="beforeOk">
    <EmployeeSelect v-model="modal" type="SELLER" placeholder="选择课程顾问" />
  </a-modal>
</template>

<style lang='less' scoped>
</style>
